import request from '@/utils/request'

//若依生成接口缺失 /service-ry
// 查询新访客信息列表
export function listNewVisitor(query) {
  return request({
    url: '/service-ry/newVisitor/newVisitor/list',
    method: 'get',
    params: query
  })
}

// 查询新访客信息详细
export function getNewVisitor(id) {
  return request({
    url: '/service-ry/newVisitor/newVisitor/' + id,
    method: 'get'
  })
}

// 新增新访客信息
export function addNewVisitor(data) {
  return request({
    url: '/service-ry/newVisitor/newVisitor',
    method: 'post',
    data: data
  })
}

// 修改新访客信息
export function updateNewVisitor(data) {
  return request({
    url: '/service-ry/newVisitor/newVisitor',
    method: 'put',
    data: data
  })
}

// 删除新访客信息
export function delNewVisitor(id) {
  return request({
    url: '/service-ry/newVisitor/newVisitor/' + id,
    method: 'delete'
  })
}

// 导出新访客信息
export function exportNewVisitor(query) {
  return request({
    url: '/service-ry/newVisitor/newVisitor/export',
    method: 'get',
    params: query
  })
}

//获取最新数据
export function getNewVisitorNewData() {
  return request({
     url: '/service-ry/newVisitor/newVisitor/latestList',
    method: 'get',   
  })
}